In JavaScript, almost "everything" is an object,except primitives.A primitive value is a value that has no properties or methods.
| let | const | var | |
| 再代入 | 〇 | ✖ | 〇 |
| 再宣言 | ✖ | ✖ | 〇 |
| ブロックスコープ | 〇 | 〇 | ✖ |
| 関数スコープ | 〇 | 〇 | 〇 |
Properties are the values associated with a JavaScript object. A JavaScript object is a collection of unordered properties. Properties can usually be changed, added, and deleted, but some are read only.
JavaScript methods are actions that can be performed on objects. A JavaScript method is a property containing a function definition.
Getters and setters allow you to define Object Accessors (Computed Properties).
Objects of the same type are created by calling the constructor function with the new keyword:
Iterable objects are objects that can be iterated over with for..of. Technically, iterables must implement the Symbol.iterator method.
A JavaScript Set is a collection of unique values. Each value can only occur once in a Set. A Set can hold any value of any data type.
JavaScript Classes are templates for JavaScript Objects.
To define the executing sequence of fuctions by following techniques.
A callback is a function passed as an argument to another function.
A Promise is a JavaScript object that links producing code and consuming code
async makes a function return a Promise await makes a function wait for a Promise.The await keyword can only be used inside an async function.